package com.sgq.vue.dao.resource;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sgq.vue.entity.resource.City;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: 83778
 * @date: 2023-12-19 17:33
 * @desc:
 */
@Mapper
public interface CityMapper extends BaseMapper<City> {

    List<City> selectCityListByUserId(Long userId);

    List<City> selectCityListByRoleId(Long roleId);

    Integer saveRoleCity(@Param("roleId") Long roleId, @Param("cityIds")List<Long> cityIds);

    Integer deleteByRoleId(Long roleId);

    List<City> selectCityListByRoleIds(@Param("roleIds")List<Long> roleIds);
}
